<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>字体样式 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../First/CSS/边框样式.html" />
    
    
    <link rel="prev" href="../../First/CSS/样式.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.2.1"
        data-chapter-title="字体样式"
        data-filepath="First/CSS/字体样式.md"
        data-basepath="../.."
        data-revision="Fri Sep 01 2017 15:03:43 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="First/HTML/html1.html">
            
                
                    <a href="../../First/HTML/html1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="First/HTML/example1.html">
            
                
                    <a href="../../First/HTML/example1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        列表之间的同素异性体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="First/HTML/example2.html">
            
                
                    <a href="../../First/HTML/example2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        常用标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="First/HTML/example3.html">
            
                
                    <a href="../../First/HTML/example3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="First/HTML/example4.html">
            
                
                    <a href="../../First/HTML/example4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        HTML5新增加的标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="First/HTML/example5.html">
            
                
                    <a href="../../First/HTML/example5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        实体字符和文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="First/HTML/example6.html">
            
                
                    <a href="../../First/HTML/example6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        table标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="First/HTML/example7.html">
            
                
                    <a href="../../First/HTML/example7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        form表单与input输入框的运用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="First/HTML/example8.html">
            
                
                    <a href="../../First/HTML/example8.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        块级元素与内联元素的往事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="First/HTML/example9.html">
            
                
                    <a href="../../First/HTML/example9.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        零碎小知识
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="First/HTML/example10.html">
            
                
                    <a href="../../First/HTML/example10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        图像热区与内嵌框架iframe的趣事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="First/HTML/content.html">
            
                
                    <a href="../../First/HTML/content.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.11.</b>
                        
                        HTML5心得和总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="First/CSS/css1.html">
            
                
                    <a href="../../First/CSS/css1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="First/CSS/css.html">
            
                
                    <a href="../../First/CSS/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="First/CSS/通配选择器.html">
            
                
                    <a href="../../First/CSS/通配选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="First/CSS/元素选择器.html">
            
                
                    <a href="../../First/CSS/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="First/CSS/class选择器和id选择器.html">
            
                
                    <a href="../../First/CSS/class选择器和id选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        class选择器和id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="First/CSS/关系选择器.html">
            
                
                    <a href="../../First/CSS/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="First/CSS/群组选择器.html">
            
                
                    <a href="../../First/CSS/群组选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        群组选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="First/CSS/伪类选择器.html">
            
                
                    <a href="../../First/CSS/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="First/CSS/属性选择器.html">
            
                
                    <a href="../../First/CSS/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="First/CSS/伪对象选择器.html">
            
                
                    <a href="../../First/CSS/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.8.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="First/CSS/样式.html">
            
                
                    <a href="../../First/CSS/样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        CSS样式分类
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="2.2.1" data-path="First/CSS/字体样式.html">
            
                
                    <a href="../../First/CSS/字体样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="First/CSS/边框样式.html">
            
                
                    <a href="../../First/CSS/边框样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="First/CSS/背景样式.html">
            
                
                    <a href="../../First/CSS/背景样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        背景样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="First/CSS/元素样式.html">
            
                
                    <a href="../../First/CSS/元素样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        元素样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="First/CSS/段落样式.html">
            
                
                    <a href="../../First/CSS/段落样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        段落样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="First/CSS/浮动.html">
            
                
                    <a href="../../First/CSS/浮动.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="First/CSS/网页常见定位.html">
            
                
                    <a href="../../First/CSS/网页常见定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        网页常见定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="First/CSS/盒子模型.html">
            
                
                    <a href="../../First/CSS/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.8.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="First/CSS/SCSS预处理.html">
            
                
                    <a href="../../First/CSS/SCSS预处理.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        sass预处理用法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="First/CSS/animate常见用法.html">
            
                
                    <a href="../../First/CSS/animate常见用法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        animate动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="First/CSS/媒体查询.html">
            
                
                    <a href="../../First/CSS/媒体查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        媒体查询
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="First/CSS/Bootstrap框架栅格化系统.html">
            
                
                    <a href="../../First/CSS/Bootstrap框架栅格化系统.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        Bootstrap框架栅格化系统
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="First/CSS/flexbox弹性盒子.html">
            
                
                    <a href="../../First/CSS/flexbox弹性盒子.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        flexbox弹性盒子
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x5B57;&#x4F53;&#x6837;&#x5F0F;">&#x5B57;&#x4F53;&#x6837;&#x5F0F;</h1>
<h2 id="&#x5B57;&#x4F53;&#x540D;&#x79F0;fontfamily">&#x5B57;&#x4F53;&#x540D;&#x79F0;(font-family)</h2>
<p>&#x8BBE;&#x7F6E;&#x6587;&#x5B57;&#x5B57;&#x4F53;</p>
<pre><code class="lang-css">    <span class="hljs-tag">p</span><span class="hljs-rules">{
        <span class="hljs-rule"><span class="hljs-attribute">font-family</span>:<span class="hljs-value"> <span class="hljs-string">&quot;Microsoft YaHei&quot;</span>,<span class="hljs-string">&quot;&#x5FAE;&#x8F6F;&#x96C5;&#x9ED1;&quot;</span>,<span class="hljs-string">&quot;&#x9ED1;&#x4F53;&quot;</span>,<span class="hljs-string">&quot;SimSun&quot;</span>,<span class="hljs-string">&quot;&#x5B8B;&#x4F53;&quot;</span></span></span>;
    }</span>
</code></pre>
<blockquote>
<p>&#x6CE8;&#x610F;:</p>
<ol>
<li>&#x53EF;&#x4EE5;&#x4F20;&#x5165;&#x591A;&#x4E2A;&#x503C;&#xFF0C;&#x7528;&#x9017;&#x53F7;&#x9694;&#x5F00;</li>
<li>&#x8BFB;&#x53D6;&#x7684;&#x987A;&#x5E8F;&#x662F;&#x4ECE;&#x5DE6;&#x5230;&#x53F3;&#xFF0C;&#x5982;&#x679C;&#x5DE6;&#x4FA7;&#x5B57;&#x4F53;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x5219;&#x8BFB;&#x4E0B;&#x4E00;&#x4F4D;&#xFF0C;&#x76F4;&#x5230;&#x4F7F;&#x7528;&#x7CFB;&#x7EDF;&#x5B57;&#x4F53;</li>
<li>&#x8BBE;&#x7F6E;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5EFA;&#x8BAE;&#x5148;&#x5199;&#x897F;&#x6587;&#x5B57;&#x4F53;&#xFF0C;win&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#xFF0C;mac&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#xFF0C;&#x901A;&#x7528;&#x7684;&#x4E2D;&#x6587;&#x5B57;&#x4F53;</li>
<li>&#x4E00;&#x5B9A;&#x628A;&#x5F15;&#x53F7;&#x52A0;&#x4E0A;,&#x82F1;&#x6587;&#x4E00;&#x5B9A;&#x8981;&#x5148;&#x5199;&#x5728;&#x4E2D;&#x6587;&#x524D;&#x9762;.</li>
<li>&#x5982;&#x679C;&#x8BBE;&#x8BA1;&#x4E2D;&#x7528;&#x5230;&#x975E;&#x4E3B;&#x6D41;&#x5B57;&#x4F53;&#xFF0C;&#x6CE8;&#x610F;&#x7248;&#x6743;&#x95EE;&#x9898;&#x548C;&#x8003;&#x8651;&#x5B57;&#x4F53;&#x5E93;&#x7684;&#x5927;&#x5C0F;,&#x897F;&#x6587;&#x5B57;&#x4F53;&#x5E93;&#x8FD8;&#x53EF;&#x4EE5;(&#x5927;&#x5C0F;&#x63A7;&#x5236;300k)&#xFF0C;&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x5C31;&#x529D;&#x5176;&#x653E;&#x5F03;</li>
</ol>
</blockquote>
<h2 id="&#x5B57;&#x4F53;&#x5927;&#x5C0F;fontsize">&#x5B57;&#x4F53;&#x5927;&#x5C0F;(font-size)</h2>
<p> &#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x5927;&#x5C0F;  </p>
<blockquote>
<p> &#x53EF;&#x4EE5;&#x5177;&#x4F53;&#x503C;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x767E;&#x5206;&#x6BD4;(&#x57FA;&#x4E8E;&#x7236;&#x5143;&#x7D20;&#x7684;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x8BA1;&#x7B97;)</p>
</blockquote>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">30px</span></span></span>;
</code></pre>
<h2 id="&#x5B57;&#x4F53;&#x52A0;&#x7C97;fontweight">&#x5B57;&#x4F53;&#x52A0;&#x7C97;(font-weight)</h2>
<p>&#x63A7;&#x5236;&#x5B57;&#x4F53;&#x7684;&#x52A0;&#x7C97;</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">font-weight</span>:<span class="hljs-value"> bold</span></span>;
</code></pre>
<blockquote>
<p>&#x5C5E;&#x6027;:</p>
<ul>
<li>normal&#xFF1A; &#x6B63;&#x5E38;&#x7684;&#x5B57;&#x4F53;&#x3002;&#x76F8;&#x5F53;&#x4E8E;&#x6570;&#x5B57;&#x503C;400 </li>
<li>bold&#xFF1A; &#x7C97;&#x4F53;&#x3002;&#x76F8;&#x5F53;&#x4E8E;&#x6570;&#x5B57;&#x503C;700&#x3002; </li>
<li>bolder&#xFF1A; &#x5B9A;&#x4E49;&#x6BD4;&#x7EE7;&#x627F;&#x503C;&#x66F4;&#x91CD;&#x7684;&#x503C; <strong>&#x4E0E;bold&#x6CA1;&#x4EC0;&#x4E48;&#x533A;&#x522B;</strong></li>
<li>lighter&#xFF1A; &#x5B9A;&#x4E49;&#x6BD4;&#x7EE7;&#x627F;&#x503C;&#x66F4;&#x8F7B;&#x7684;&#x503C; </li>
<li>integer&#xFF1A; &#x7528;&#x6570;&#x5B57;&#x8868;&#x793A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x7C97;&#x7EC6;&#x3002;&#x53D6;&#x503C;&#x8303;&#x56F4;&#xFF1A;100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 </li>
</ul>
</blockquote>
<h2 id="&#x5B57;&#x4F53;&#x659C;&#x4F53;fontstyle">&#x5B57;&#x4F53;&#x659C;&#x4F53;(font-style)</h2>
<p>&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x7684;&#x662F;&#x5426;&#x503E;&#x659C;</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">font-style</span>:<span class="hljs-value"> italic</span></span>;
</code></pre>
<blockquote>
<p>&#x5C5E;&#x6027;:</p>
<ul>
<li>normal&#xFF1A; &#x6307;&#x5B9A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x4E3A;&#x6B63;&#x5E38;&#x7684;&#x5B57;&#x4F53; </li>
<li>italic&#xFF1A; &#x6307;&#x5B9A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x4E3A;&#x659C;&#x4F53;&#x3002;&#x5BF9;&#x4E8E;&#x6CA1;&#x6709;&#x8BBE;&#x8BA1;&#x659C;&#x4F53;&#x7684;&#x7279;&#x6B8A;&#x5B57;&#x4F53;&#xFF0C;&#x5982;&#x679C;&#x8981;&#x4F7F;&#x7528;&#x659C;&#x4F53;&#x5916;&#x89C2;&#x5C06;&#x5E94;&#x7528;oblique </li>
<li>oblique&#xFF1A; &#x6307;&#x5B9A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x4E3A;&#x503E;&#x659C;&#x7684;&#x5B57;&#x4F53;&#x3002;&#x4EBA;&#x4E3A;&#x7684;&#x4F7F;&#x6587;&#x5B57;&#x503E;&#x659C;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x53BB;&#x9009;&#x53D6;&#x5B57;&#x4F53;&#x4E2D;&#x7684;&#x659C;&#x4F53;&#x5B57;</li>
</ul>
</blockquote>
<h2 id="&#x5B57;&#x4F53;&#x5C0F;&#x578B;&#x7684;&#x5927;&#x5199;&#x5B57;&#x6BCD;fontvariant">&#x5B57;&#x4F53;&#x5C0F;&#x578B;&#x7684;&#x5927;&#x5199;&#x5B57;&#x6BCD;(font-variant)</h2>
<p>&#x8BBE;&#x7F6E;&#x6216;&#x68C0;&#x7D22;&#x5BF9;&#x8C61;&#x4E2D;&#x7684;&#x6587;&#x672C;&#x662F;&#x5426;&#x4E3A;&#x5C0F;&#x578B;&#x7684;&#x5927;&#x5199;&#x5B57;&#x6BCD;</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">font-variant</span>:<span class="hljs-value"> small-caps</span></span>;
</code></pre>
<blockquote>
<p>&#x5C5E;&#x6027;:</p>
<ul>
<li>normal &#x6B63;&#x5E38;&#x7684;&#x5B57;&#x4F53;</li>
<li>small-caps  &#x63A7;&#x5236;&#x897F;&#x6587;&#x5B57;&#x4F53;,small-caps&#x4F1A;&#x8F6C;&#x6362;&#x5B57;&#x6BCD;&#x4E3A;&#x5927;&#x5199;&#xFF0C;&#x5927;&#x5C0F;&#x548C;&#x5C0F;&#x5199;&#x5B57;&#x6BCD;&#x4E00;&#x6837;</li>
</ul>
</blockquote>
<h2 id="&#x884C;&#x9AD8;lineheight">&#x884C;&#x9AD8;(line-height)</h2>
<p>&#x68C0;&#x7D22;&#x6216;&#x8BBE;&#x7F6E;&#x5BF9;&#x8C61;&#x7684;&#x884C;&#x9AD8;&#x3002;&#x5373;&#x5B57;&#x4F53;&#x6700;&#x5E95;&#x7AEF;&#x4E0E;&#x5B57;&#x4F53;&#x5185;&#x90E8;&#x9876;&#x7AEF;&#x4E4B;&#x95F4;&#x7684;&#x8DDD;&#x79BB;</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">line-height</span>:<span class="hljs-value"><span class="hljs-number">100%</span></span></span>;
</code></pre>
<blockquote>
<p>&#x6CE8;&#x610F;:</p>
<ul>
<li>&#x53EF;&#x4EE5;&#x4F20;&#x5177;&#x4F53;&#x503C;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x4F20;&#x767E;&#x5206;&#x6BD4;(&#x5176;&#x767E;&#x5206;&#x6BD4;&#x53D6;&#x503C;&#x662F;&#x57FA;&#x4E8E;&#x5B57;&#x4F53;&#x7684;&#x5927;&#x5C0F;)</li>
</ul>
</blockquote>
<h2 id="&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x7F29;&#x5199;">&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x7F29;&#x5199;</h2>
<p>&#x7F29;&#x5199;&#x683C;&#x5F0F;&#x4E3A;
<code>font:font-style || font-variant || font-weight || font-size || /line-height || font-family</code></p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">font</span>:<span class="hljs-value"> italic small-caps bold <span class="hljs-number">30px</span>/<span class="hljs-number">100px</span>  <span class="hljs-string">&quot;&#x5FAE;&#x8F6F;&#x96C5;&#x9ED1;&quot;</span>,<span class="hljs-string">&quot;&#x9ED1;&#x4F53;&quot;</span>,<span class="hljs-string">&quot;&#x5B8B;&#x4F53;&quot;</span></span></span>;
</code></pre>
<blockquote>
<p>&#x7F29;&#x5199;&#x987A;&#x5E8F;&#x4E0D;&#x53EF;&#x53D8;&#x6362;</p>
</blockquote>
<h2 id="&#x5B57;&#x4F53;&#x989C;&#x8272;color">&#x5B57;&#x4F53;&#x989C;&#x8272;(color)</h2>
<p>&#x7ED9;&#x5B57;&#x4F53;&#x8BBE;&#x7F6E;&#x989C;&#x8272;</p>
<p><img src="image/color.jpg" alt="RGB&#x56FE;"></p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value">red</span></span>;<span class="hljs-comment">/*&#x5355;&#x8BCD;&#x6A21;&#x5F0F;*/</span>
    <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> <span class="hljs-hexcolor">#FF0000</span></span></span>;<span class="hljs-comment">/*&#x5341;&#x516D;&#x8FDB;&#x5236;,#999999,#cccccc,#808080,#333333&#x90FD;&#x662F;&#x7070;&#x8272;*/</span>
    <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> <span class="hljs-function">rgba</span>(<span class="hljs-number">255</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,.<span class="hljs-number">5</span>)</span></span>;<span class="hljs-comment">/*rgba&#x6A21;&#x5F0F;,rgba&#x53EF;&#x4EE5;&#x652F;&#x6301;&#x900F;&#x660E;&#x5EA6;&#x7684;&#x989C;&#x8272;&#x503C;,&#x900F;&#x660E;&#x5EA6;&#x53D6;&#x503C;&#x8303;&#x56F4;&#x662F;0-1*/</span>
    <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> <span class="hljs-function">hsl</span>(<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">21</span>)</span></span>;<span class="hljs-comment">/* &#x8272;&#x76F8;,&#x9971;&#x548C;&#x5EA6;&#xFF0C;&#x660E;&#x5EA6;*/</span><span class="hljs-comment">/*&#x6269;&#x5C55;*/</span>
</code></pre>
<blockquote>
<p>&#x8BBE;&#x7F6E;&#x989C;&#x8272;&#x7684;&#x65B9;&#x5F0F;(&#x6CE8;&#x610F;)</p>
<ul>
<li>&#x5355;&#x8BCD;&#x6A21;&#x5F0F;</li>
<li>&#x5341;&#x516D;&#x8FDB;&#x5236;</li>
<li>rgba&#x6A21;&#x5F0F;</li>
<li>hsl(&#x8272;&#x76F8;,&#x9971;&#x548C;&#x5EA6;&#xFF0C;&#x660E;&#x5EA6;)</li>
</ul>
</blockquote>
<h2 id="&#x6587;&#x672C;&#x88C5;&#x9970;&#x7EBF;&#x6761;textdecoration">&#x6587;&#x672C;&#x88C5;&#x9970;&#x7EBF;&#x6761;(text-decoration)</h2>
<p>&#x8BBE;&#x7F6E;&#x5BF9;&#x8C61;&#x4E2D;&#x7684;&#x6587;&#x672C;&#x7684;&#x88C5;&#x9970;</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">text-decoration</span>:<span class="hljs-value"> none</span></span>;<span class="hljs-comment">/*&#x53BB;&#x9664;&#x4E0B;&#x6A2A;&#x7EBF;*/</span>
    <span class="hljs-rule"><span class="hljs-attribute">text-decoration</span>:<span class="hljs-value"> line-through</span></span>;<span class="hljs-comment">/*&#x7A7F;&#x8FC7;&#x6587;&#x672C;&#x7684;&#x6A2A;&#x7EBF;*/</span>
    <span class="hljs-rule"><span class="hljs-attribute">text-decoration</span>:<span class="hljs-value"> overline</span></span>;<span class="hljs-comment">/*&#x4E0A;&#x6A2A;&#x7EBF;*/</span>
    <span class="hljs-rule"><span class="hljs-attribute">text-decoration</span>:<span class="hljs-value"> underline</span></span>;<span class="hljs-comment">/*(&#x9ED8;&#x8BA4;)&#x4E0B;&#x6A2A;&#x7EBF;*/</span>
</code></pre>
<blockquote>
<p>&#x6269;&#x5C55;:</p>
<ul>
<li>&#x6240;&#x6709;&#x6D4F;&#x89C8;&#x5668;&#x5747;&#x652F;&#x6301;CSS2.1&#x4E2D;&#x7684; <code>&lt;&apos; text-decoration &apos;&gt;</code> &#x5C5E;&#x6027;&#xFF0C;&#x5728;CSS3&#x4E2D;&#xFF0C;&#x8BE5;&#x5C5E;&#x6027;&#x5B9A;&#x4E49;&#x88AB;&#x79FB;&#x690D;&#x5230;&#x5176;&#x65B0;&#x7684;&#x5206;&#x89E3;&#x5C5E;&#x6027;<code>&lt;&apos; text-decoration-line &apos;&gt;</code> &#x4E0A;</li>
</ul>
</blockquote>
<h2 id="&#x6587;&#x5B57;&#x9634;&#x5F71;textshadow">&#x6587;&#x5B57;&#x9634;&#x5F71;(text-shadow)</h2>
<p>&#x6539;&#x53D8;&#x6587;&#x5B57;&#x7684;&#x9634;&#x5F71;&#x6548;&#x679C;&#x548C;&#x6A21;&#x7CCA;&#x5EA6;</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">text-shadow</span>:<span class="hljs-value"> <span class="hljs-number">5px</span> <span class="hljs-number">5px</span> <span class="hljs-number">1px</span> <span class="hljs-hexcolor">#FF0000</span></span></span>;
</code></pre>
<blockquote>
<p>&#x5C5E;&#x6027;&#xFF1A;</p>
<ul>
<li>h-shadow         &#x5FC5;&#x9700;&#x3002;&#x6C34;&#x5E73;&#x9634;&#x5F71;&#x7684;&#x4F4D;&#x7F6E;&#x3002;&#x5141;&#x8BB8;&#x8D1F;&#x503C;&#x3002;</li>
<li>v-shadow         &#x5FC5;&#x9700;&#x3002;&#x5782;&#x76F4;&#x9634;&#x5F71;&#x7684;&#x4F4D;&#x7F6E;&#x3002;&#x5141;&#x8BB8;&#x8D1F;&#x503C;&#x3002;</li>
<li>blur             &#x53EF;&#x9009;&#x3002;&#x6570;&#x503C;&#x8D8A;&#x9AD8;&#xFF0C;&#x6A21;&#x7CCA;&#x5EA6;&#x8D8A;&#x5927;,&#x5355;&#x4F4D;px.</li>
<li>color            &#x53EF;&#x9009;&#x3002;&#x9634;&#x5F71;&#x7684;&#x989C;&#x8272;&#x3002; </li>
</ul>
<p>&#x6CE8;&#x610F;:</p>
<ul>
<li>&#x4E00;&#x4E2A;text-shadow&#x53EF;&#x4EE5;&#x652F;&#x6301;&#x591A;&#x4E2A;&#x9634;&#x5F71;(&#x6587;&#x5B57;&#x7684;&#x706B;&#x7130;&#x6548;&#x679C;)</li>
</ul>
</blockquote>
<h2 id="&#x5229;&#x7528;fontface&#x5D4C;&#x5165;&#x5B57;&#x4F53;">&#x5229;&#x7528;@font-face&#x5D4C;&#x5165;&#x5B57;&#x4F53;</h2>
<p>@font-face&#x80FD;&#x591F;&#x52A0;&#x8F7D;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x7684;&#x5B57;&#x4F53;&#x6587;&#x4EF6;&#xFF0C;&#x8BA9;&#x6D4F;&#x89C8;&#x5668;&#x7AEF;&#x53EF;&#x4EE5;&#x663E;&#x793A;&#x7528;&#x6237;&#x7535;&#x8111;&#x91CC;&#x6CA1;&#x6709;&#x5B89;&#x88C5;&#x7684;&#x5B57;&#x4F53;</p>
<blockquote>
<p>&#x5E38;&#x89C1;&#x7528;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-css">    <span class="hljs-at_rule">@<span class="hljs-keyword">font-face</span></span> <span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">font-family</span>:<span class="hljs-value">bgg</span></span>;<span class="hljs-comment">/*&#x5B57;&#x4F53;&#x540D;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">src</span>:<span class="hljs-value"> <span class="hljs-function">url</span>(font/VDUB.ttf)</span></span>;<span class="hljs-comment">/*&#x5F15;&#x5165;&#x5B57;&#x4F53;&#x6587;&#x4EF6;&#x76F8;&#x5BF9;&#x8DEF;&#x5F84;*/</span>
            }</span>
</code></pre>
<p>icon&#x5C0F;&#x56FE;&#x6807;</p>
<blockquote>
<p>&#x4E03;&#x6B65;&#x66F2;&#x6B65;&#x9AA4;:</p>
<ol>
<li>&#x4E0B;&#x8F7D;&#x5C0F;&#x56FE;&#x6807;(<a href="http://www.iconfont.cn/" target="_blank">http://www.iconfont.cn/</a>)</li>
<li>&#x628A;iconfont.CSS&#x590D;&#x5236;&#x5230;CSS&#x6587;&#x4EF6;&#x5939;</li>
<li>&#x628A;eot,svg,ttf,woff&#x62F7;&#x5230;&#x65B0;&#x5EFA;&#x7684;font&#x6587;&#x4EF6;&#x5939;</li>
<li>&#x4FEE;&#x6539;iconfont.css&#x7684;font-face&#x5F15;&#x5165;&#x8DEF;&#x5F84;</li>
<li>&#x5728;html&#xFF0C;link&#x5F15;&#x5165;iconfont.css</li>
<li>&#x4EE3;&#x7801;&#x5982;&#x4E0B;<code>&lt;i class=&quot;iconfont icon-dog&quot;&gt;&lt;/i&gt;</code></li>
<li>&#x5982;&#x679C;&#x8981;&#x4FEE;&#x6539;&#x989C;&#x8272;&#x548C;&#x5927;&#x5C0F;&#xFF0C;&#x53EF;&#x4EE5;&#x9009;&#x4E2D;&#x5B83;&#xFF0C;&#x8BBE;&#x7F6E;color,font-size&#x3002;&#x4F8B;&#x5982;</li>
</ol>
</blockquote>
<pre><code class="lang-html">body i.icon-dog{
                color: pink;
                font-size: 120px;
                text-shadow: 5px 5px 10px #FF0000;
            }
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../First/CSS/样式.html" class="navigation navigation-prev " aria-label="Previous page: CSS样式分类"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../First/CSS/边框样式.html" class="navigation navigation-next " aria-label="Next page: 边框样式"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
